/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2022 All Rights Reserved.
 */
package com.example.spider.provider.why10w.deprecated.wgwhy10;

/**
 * @author lym
 */
public enum Wgwhy10CategoryEnum {

    yuzhou("宇宙"),
    diqiu("地球"),
    huanjing("环境"),
    dongwu("动物"),
    zhiwu("植物"),
    renti("人体"),
    lishi("历史"),
    yishu("艺术"),
    shenghuo("生活"),
    junshi("军事"),
    keji("科技"),
    shuxue("数学"),
    wuli("物理"),
    huaxue("化学"),
    haiyang("海洋"),
    jiaotong("交通"),
    guoji("国际"),
    tiyu("体育"),
    yixue("医学"),


    ;
    private final String category;

    Wgwhy10CategoryEnum(String category) {
        this.category = category;
    }

    public static Wgwhy10CategoryEnum getByCategory(String category) {
        for (Wgwhy10CategoryEnum value : values()) {
            if (value.name().equalsIgnoreCase(category)) {
                return value;
            }
        }
        return null;
    }

    public String getCategory() {
        return category;
    }
}